package com.guigu.alibaba.service;

import com.guigu.alibaba.dao.AccountDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;

@Service
public class AccountService {

    @Resource
    private AccountDao accountDao;

    public void decrease(Long userId, BigDecimal money) {
        accountDao.decrease(userId, money);
    }
}
